package cn.dapeng.rpc.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * https://juejin.cn/post/7002252868413554701
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class RpcRequest implements Serializable {

    /**
     * ID of Request Object
     */
    private Long requestId;
    /**
     * Class name
     */
    private String className;
    /**
     * Method name
     */
    private String methodName;
    /**
     * Parameter type
     */
    private Class<?>[] parameterTypes;
    /**
     * Participation
     */
    private Object[] parameters;

}
